#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
using namespace std;
#include "My_Map.h"
#include "My_Set.h"

int main()
{
	/*dwc::set<int> s;
	s.Insert(1);
	s.Insert(45);
	s.Insert(32);
	s.Insert(15);
	s.Insert(8);

	s.Insert(95);
	s.Insert(75);
	s.Insert(32);
	s.Insert(65);
	s.Insert(3);

	dwc::set<int>::iterator it = s.begin();
	while (it != s.end())
	{
		cout << *it << " ";
		++it;
	}
	cout << endl;*/


	/*dwc::set<string> s;
	s.Insert("apple");
	s.Insert("pear");
	s.Insert("think");
	s.Insert("what");
	s.Insert("victory");

	s.Insert("that");
	s.Insert("zouwang");
	s.Insert("how");
	s.Insert("sky");
	s.Insert("day day up");

	dwc::set<string>::iterator it = s.begin();
	while (it != s.end())
	{
		cout << *it << " ";
		++it;
	}
	cout << endl;*/

	/*dwc::map<string,int> s;
	s.Insert(make_pair("apple", 0));
	s.Insert(make_pair("banana", 0));
	s.Insert(make_pair("pear", 0));
	s.Insert(make_pair("victory", 0));
	s.Insert(make_pair("what", 0));

	s.Insert(make_pair("love", 0));
	s.Insert(make_pair("young", 0));
	s.Insert(make_pair("people", 0));
	s.Insert(make_pair("sun", 0));
	s.Insert(make_pair("key", 0));
	s.Insert(make_pair("key", 0));

	dwc::map<string,int>::iterator it = s.begin();
	while (it != s.end())
	{
		cout << it->first << '[' << it->second << ']' << ' ';
		++it;
	}
	cout << endl;*/

	dwc::map<int,int> s;
	s.Insert(make_pair(1, 1));
	s.Insert(make_pair(8, 8));
	s.Insert(make_pair(23, 23));
	s.Insert(make_pair(15, 15));
	s.Insert(make_pair(16, 1));

	s.Insert(make_pair(19, 1));
	s.Insert(make_pair(22, 1));
	s.Insert(make_pair(20, 1));
	s.Insert(make_pair(11, 1));
	s.Insert(make_pair(79, 1));

	dwc::map<int,int>::iterator it = s.begin();
	while (it != s.end())
	{
		cout << it->first << '[' << it->second << ']' << ' ';
		++it;
	}
	cout << endl;

	return 0;
}